#ifndef __TIMER_H
#define __TIMER_H
#include "types.h"

struct timer_t {
	char *timer_name;
	void (*cb_func)(void *arg);
	void *arg;
	uint32_t timeout_tick;
};


void timer_init();
void timer_handler();

struct timer_t *timer_create(void (*handler)(void *arg),
								char *timer_name,
								void *arg,
								uint32_t time_out);
uint32_t timer_delete(struct timer_t *timer);

#endif
